const FormItemList = [
  { columnKey: "applyUserName", columnComment: "申请人" },
  { columnKey: "applyType", columnComment: "请假类型" },
  { columnKey: "applyDays", columnComment: "请假天数" },
  { columnKey: "applyDate", columnComment: "申请日期" },
  { columnKey: "beginDate", columnComment: "开始日期" },
  { columnKey: "applyReason", columnComment: "请假原因" }
];

export default [
  // 获取用户信息接口
  {
    url: "/esflow/form/get/table",
    method: "get",
    response: () => {
      // 有就返回成功信息
      return {
        total: 0,
        records: [
          {
            id: "1",
            formName: "请假表单",
            formStatus: "0",
            formStatusDesc: "启用",
            formRemark: "测试表单",
            createUserName: "管理员",
            createTime: new Date()
          }
        ]
      };
    }
  },
  {
    url: "/esflow/form/get/:id",
    method: "get",
    response: () => {
      // 有就返回成功信息
      return {
        code: 200,
        data: {}
      };
    }
  },
  {
    url: "/esflow/form/get/item/list/:id",
    method: "get",
    response: () => {
      // 有就返回成功信息
      return {
        code: 200,
        data: FormItemList
      };
    }
  }
];
